const { ipcRenderer } = require("electron");
let contentElement = document.getElementById("content");
ipcRenderer.on("action", (event, data) => {
  // data: 主进程传来的数据;
  console.log("主进程传来的数据", data);
  contentElement.innerHTML = data;
});

ipcRenderer.send("registerChannelEvent", "action");
